import { memo } from "react";
import { HeaderWrapper } from "./style";

export const SecessionHeader = memo((props) => {
    const { title, subtitle } = props;
    return (
        <HeaderWrapper>
            <h2 className="title" >{title}</h2>
            {subtitle&&<div className="subtitle">{subtitle}</div>}
        </HeaderWrapper>
    )
})